Skip to content

action_sheet: Add 'Channel feed' button to channel action sheet #1794

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

chrisbobbe
Copy link
Collaborator

@chrisbobbe chrisbobbe commented Aug 7, 2025

Fixes #1705.

Screenshots

From channel feed (no button)

image

Not from channel feed (button)

image image

@chrisbobbe chrisbobbe requested a review from gnprice August 7, 2025 02:11
@chrisbobbe chrisbobbe added the integration review Added by maintainers when PR may be ready for integration label Aug 7, 2025
Copy link
Member

@gnprice gnprice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! All LGTM except two small comments below; then please go ahead and merge.

Comment on lines 438 to 440
testWidgets('from subscription list: visible ', (tester) async {
await prepare();
await showFromInbox(tester);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy-paste error? 🙂

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the catch!

await tester.pump(); // [MenuItemButton.onPressed] called in a post-frame callback: flutter/flutter@e4a39fa2e
}

testWidgets('from inbox: visible ', (tester) async {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: stray space (here and others below)

Suggested change
testWidgets('from inbox: visible ', (tester) async {
testWidgets('from inbox: visible', (tester) async {

@chrisbobbe chrisbobbe force-pushed the pr-channel-feed-button-in-action-sheet branch from 1d89611 to c47538c Compare August 15, 2025 03:17
@chrisbobbe
Copy link
Collaborator Author

Thanks, revision pushed! I've added one more commit, PTAL:

c47538c topic_list: Don't show topic-list button in action sheet from app bar

@chrisbobbe chrisbobbe force-pushed the pr-channel-feed-button-in-action-sheet branch from c47538c to add8dc5 Compare August 15, 2025 23:12
@chrisbobbe
Copy link
Collaborator Author

Ah pushed again to fix a failing test in that last commit.

@gnprice
Copy link
Member

gnprice commented Aug 15, 2025

Thanks! Looks good; go ahead and merge once CI passes.

…setup

It looks like this param was only being used to avoid the
topic-autocomplete behavior mentioned in the code comment. For
invoking the channel action sheet by long-pressing the app bar, it
shouldn't matter if the message list isn't showing any messages.
Similarly to how we don't show the "Channel feed" button when
opening the same action sheet from a channel feed.
@chrisbobbe chrisbobbe force-pushed the pr-channel-feed-button-in-action-sheet branch from add8dc5 to e12673a Compare August 20, 2025 17:47
@chrisbobbe chrisbobbe merged commit e12673a into zulip:main Aug 20, 2025
1 check passed
@chrisbobbe
Copy link
Collaborator Author

Thanks! Done, after rebasing and running tools/check locally, since main had advanced since your comment.

@chrisbobbe chrisbobbe deleted the pr-channel-feed-button-in-action-sheet branch August 20, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration review Added by maintainers when PR may be ready for integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add channel feed button to bottom sheet
2 participants